package router

import (
	"github.com/gin-gonic/gin"
	"turn-around/internal/api"
)

func UserRouter(c *gin.RouterGroup) {
	user := c.Group("user")
	{
		user.POST("/Register", api.Register)
		user.POST("/SendOut", api.SendOut)
		user.POST("/Login", api.Login)
	}
}

func GoodsRouter(c *gin.RouterGroup) {
	goods := c.Group("goods")
	{
		goods.POST("/AddGoods", api.AddGoods)
	}
}
